/*
 * @(#) DecisionStateEnum
 *
 * <br> Copyright:  Copyright (c) 2017
 * <br> @author caijinhuang
 * <br> 2017-12-18 16:20:54
 */

package com.sunsharing.sharemeeting.constant;

/*会议决议状态*/
public enum DecisionStateEnum {

    OUTTIME("P005","超时"),
    HURRY("P004","紧急"),
    HEIGHT("P003" , "高"),
    MIDDEL("P002" , "中"),
    LOW("P001","底");


    private String key;
    private String value;

    DecisionStateEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    /*获取枚举内容*/
    public static String getName(String key) {
        for (DecisionStateEnum d : DecisionStateEnum.values()) {
            if (d.getKey().equals(key)) {
                return d.getValue();
            }
        }
        return null;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
